package org.zk.dubbo_provider.dao;


import org.zk.entity.Lession;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课节表 Mapper 接口
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
public interface LessionMapper   {
    //发布课程
    int addLession(Lession lession);

    //分页查询所有课节
    List<Lession> getAllLession(Map<String,Object> map);
    //查询课节数量
    /*int queryCount(Map<String,Object> map);*/

    //课程审核
    int updateLessionState(Lession lession);

    //根据id查询课节
    Lession getLessionById(int lessionId);
}
